import request from '@/utils/request'

// 查询门店列表列表
export function listIshop(query) {
  return request({
    url: '/investprod/ishop/list',
    method: 'get',
    params: query
  })
}

// 查询门店列表详细
export function getIshop(shopId) {
  return request({
    url: '/investprod/ishop/' + shopId,
    method: 'get'
  })
}

// 新增门店列表
export function addIshop(data) {
  return request({
    url: '/investprod/ishop',
    method: 'post',
    data
  })
}

// 修改门店列表
export function updateIshop(data) {
  return request({
    url: '/investprod/ishop',
    method: 'put',
    data
  })
}

// 删除门店列表
export function delIshop(shopId) {
  return request({
    url: '/investprod/ishop/' + shopId,
    method: 'delete'
  })
}
// i茅台商品
export function refreshShop() {
  return request({
    url: '/investprod/ishop/refresh',
    method: 'get'
  })
}

// 查询省份列表
export function listProvince(query) {
  return request({
    url: '/investprod/ishop/provinceList',
    method: 'get',
    params: query
  })
}

// 查询城市列表
export function listCity(query) {
  return request({
    url: '/investprod/ishop/cityList',
    method: 'get',
    params: query
  })
}

// 查询区域列表列表
export function listDistrict(query) {
  return request({
    url: '/investprod/ishop/districtList',
    method: 'get',
    params: query
  })
}
